package com.example.design.ddd.practice2.common;

import java.time.LocalDateTime;
import java.util.UUID;

// 领域事件基类
public abstract class DomainEvent {
    private final String eventId;
    private final LocalDateTime occurredOn;

    protected DomainEvent() {
        this.eventId = UUID.randomUUID().toString();
        this.occurredOn = LocalDateTime.now();
    }
}